import request from '@/utils/request'

// 获取酒店数据
export function getHotelList(query) {
  return request({
    url: '/hotel/hotel/getHotelList',
    method: 'get',
    params: query
  })
}

// 根据酒店ID获取酒店信息
export function getHotelByHotelId(query) {
  return request({
    url: '/hotel/hotel/getHotelByHotelId',
    method: 'get',
    params: query
  })
}

// 获取城市信息
export function getCity() {
  return request({
    url: '/hotel/city/getCity',
    method: 'get'
  })
}

// 获取艺龙酒店数据
export function getELongHotelList(query) {
  return request({
    url: '/hotel/hotel/getELongHotelList',
    method: 'get',
    params: query
  })
}

// 添加酒店
export function postAddHotel(data) {
  return request({
    url: '/hotel/hotel/postAddHotel',
    method: 'post',
    data: data
  })
}

// 修改酒店
export function postEditHotel(data) {
  return request({
    url: '/hotel/hotel/postEditHotel',
    method: 'post',
    data: data
  })
}

// 获取所有酒店用于房型下拉框
export function getHotelListAll() {
  return request({
    url: '/hotel/hotel/getHotelListAll',
    method: 'get'
  })
}

// 30分钟免费取消
export function postIsFreeCancelable(data) {
  return request({
    url: '/hotel/hotel/postIsFreeCancelable',
    method: 'post',
    data: data
  })
}

// 取消规则提交
export function postUpdateRoomRatePlanPolicy(data) {
  return request({
    url: '/hotel/hotel/postUpdateRoomRatePlanPolicy',
    method: 'post',
    data: data
  })
}

// 获取酒店详情
export function getHotelInfo(query) {
  return request({
    url: '/hotel/hotel/getHotelInfo',
    method: 'get',
    params: query
  })
}

// 获取运营人员
export function getSysUserInfo() {
  return request({
    url: '/hotel/hotel/getSysUserInfo',
    method: 'get'
  })
}

// 获取酒店所属周末星期
export function getHotelWeekEndByHotelId(query) {
  return request({
    url: '/hotel/hotel/getHotelWeekEndByHotelId',
    method: 'get',
    params: query
  })
}

// 修改酒店的所属周末
export function postEditWeekEnd(data) {
  return request({
    url: '/hotel/hotel/postEditWeekEnd',
    method: 'post',
    data: data
  })
}

// 修改酒店的所属周末
export function postHotelIssueConfig(data) {
  return request({
    url: '/hotel/hotel/postHotelIssueConfig',
    method: 'post',
    data: data
  })
}

// 获取酒店发发单文字配置
export function getHotelIssueConfig(query) {
  return request({
    url: '/hotel/hotel/getHotelIssueConfig',
    method: 'get',
    params: query
  })
}

// 本地酒店与艺龙酒店数据同步
export function postEditLocalByOnline(data) {
  return request({
    url: '/hotel/hotel/postEditLocalByOnline',
    method: 'post',
    data: data
  })
}

// 酒店露出查询
export function getPriceShowAllList(query) {
  return request({
    url: '/hotel/hotel/getPriceShowAllList',
    method: 'get',
    params: query
  })
}